package com.aerotechnic.models;

import javax.persistence.Column;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Table;

@Entity
@Table(name = "JobCard")
public class JobCard extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Column(name="Numero")
	private int numero;
	
	@Column(name="Zone")
	private String zone;
	
	@Column(name="Specialie")
	private String spec;
	
	@Column(name="Phase")
	private String phase;
	
	// nombre d'heures de travail
	@Column(name="work")
	private String work;
	
	@Column(name="Skill")
	private String skill;
	
	//status de la carte de travail
	@Column(name="status")
	private String status;

	//links
	@OneToOne(fetch = FetchType.EAGER, targetEntity = Ressource.class)
	private Ressource ressource;
	
	@ManyToOne(fetch = FetchType.EAGER, targetEntity = MacroTache.class)
	protected MacroTache macroTache;

	public int getNumero() {
		return numero;
	}

	public void setNumero(int numero) {
		this.numero = numero;
	}

	public String getZone() {
		return zone;
	}

	public void setZone(String zone) {
		this.zone = zone;
	}

	public String getSpec() {
		return spec;
	}

	public void setSpec(String spec) {
		this.spec = spec;
	}

	public String getPhase() {
		return phase;
	}

	public void setPhase(String phase) {
		this.phase = phase;
	}

	public String getWork() {
		return work;
	}

	public void setWork(String work) {
		this.work = work;
	}

	public String getSkill() {
		return skill;
	}

	public void setSkill(String skill) {
		this.skill = skill;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Ressource getRessource() {
		return ressource;
	}

	public void setRessource(Ressource ressource) {
		this.ressource = ressource;
	}

	public MacroTache getMacroTache() {
		return macroTache;
	}

	public void setMacroTache(MacroTache macroTache) {
		this.macroTache = macroTache;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	
	
}
